import { computed, reactive, ref, toRefs } from "vue";

import useUserStore from '@/store/modules/user'
const userStore = useUserStore()
const userInfo = ref({
    userId: null,
    userName: null,
    userType: null,
    email: null,
    phoneNumber: null,
    status: 0,
    createTime: null,
    updateTime: null,
    remark: null,
    avatarUrl: null,
    roleIds: [],
    roles: []
})
const permissions = ref([])



const usd_rmbList = ref([]);
const open = ref(false);
const loading = ref(true);
const showSearch = ref(true);
const ids = ref([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const title = ref("");

const data = reactive({
  form: {},
  queryParams: {
    pageNum: 1,
    pageSize: 10,
    userId: null,
    accountId: null,
    productId: null,
    type: null,
  },
  rules: {
  }
});

const { queryParams, form, rules } = toRefs(data);
export {

    data,
    queryParams,
    form,
    rules,


    open,
    loading,
    showSearch,
    ids,
    single,
    multiple,
    total,
    title,

    userStore,
    userInfo,
    permissions,
    usd_rmbList,
    
}
